﻿public class HomeWork {
	String brand;
	double price;
	char color;
	String numb;
	String operatSystem;
	boolean isSmartPhone;
	String purchaseDate;
	
	public void show(){
		System.out.println("手机的品牌："+brand);
		System.out.println("手机的价格："+price);
		System.out.println("手机的颜色："+color);
		System.out.println("手机的号码："+numb);
		System.out.println("手机的操作系统："+operatSystem);
		System.out.println("是不是智能手机："+isSmartPhone);
		System.out.println("手机的购买日期："+purchaseDate);
	}
	public void function(){
		System.out.println("开机、打电话、发短信、上网\n听音乐、看视频、聊QQ、打游戏\n看小说、照相、照明、提醒、关机");
	}
	
	public static void main(String[] args) {
		HomeWork phone = new HomeWork();
		phone.brand = "iPhone";
		phone.price = 5000;
		phone.color = '黑';
		phone.numb = "12345678910";
		phone.operatSystem = "ios";
		phone.isSmartPhone = true;
		phone.purchaseDate = "2016.12.23";
		phone.show();
		phone.function();

	}
}